package com.jmlee.service;

import com.jmlee.pojo.CommonPage;
import com.jmlee.pojo.Items;
import com.jmlee.vo.ItemDetailVO;

/**
 * @Description 商品服务类
 * @Author jmLee
 * @Date 2021/3/9 10:10
 * @Version 1.0
 */
public interface ItemsService {


    CommonPage<Items> getItemsList(Long cid, Integer sort, Integer pageNum, Integer pageSize);

    CommonPage<Items> searchItem(String keyword, Integer curPage, Integer pageSize);

    ItemDetailVO getItemDetail(Long itemId);

    Items getItemsById(Long itemId);

    Long reduceStock(Long itemId, Integer buyCount);

    Long releaseStock(Long itemId, Integer num);

    CommonPage<Items> getSpecialItems(Integer itemType);
}
